signup function and part of email valid function