refactoring login [removed @controller and added in userservice]