the login function has been imported the the main flask app