added validation to UserService
removed unnecessary configuration