Added server side validation to registration

Currently separate from front end validation still - will eventually
move all to server side with ajax response.