api registration with email validation