add check for empty user