Added authentication and auth tests to User