refactor userController and testing startup the server