Function authorizeModelAttempt