rest user service implemented with user registration and login