Added login functionality to the application.