Updating error handling in authorisation method