Added login and keyboard dismissal.