Complete authenticate API of user