Removed unnecessary repetition in authentication.