email validation - not sure if you already have it

I also added the feature for each value to not clear when the user clicks submit and password doesn't match or something, so the user doesn't have to input everything all over again.