Fixing bug with the login_enabled