setting authenticated user