Changes in UserRepository, Save user data and validate user data