app.context_processor for login_form_handler method. so this method should be run before every page rendering