validate email on client