The code looks OK to me, except for that you don't have any validation for the email address format.