Added login and exit