Login to the system and main page