updated login_controller workflow