Authenticate function changes
Authentication redirection