straightened out codes in register sms
check for valid email before attempting to send