fixed email requirement so it works when there is no authentication