refactored login controller and user service
more refactoring and added logout to user service