registration works with email validation