move login logic to authService
clean up AuthController dependencies
move register and login function to a service