logged user assignment after registration