modified authentication controller so that appropriate error message will be displaed during authentication(traced during evaluation of the client)