Implemented login form functionality.