Check if user is authorized