add check if is authenticated