Implemented login authentication and form submission