Implemented all the methods that are tested in testUser()