Implemented user auth.