Work on correct authentication process from client