add check for authorization status