Fixed authorization bug (user not found exception)