Save the user before authenticate

Ticket:	#3691