Created UserService, moved business logic into it from Register and Login