fix email validation and add send message on reg