check if user is authenticated MJ-393