Small fixes.
Client side validation added to main page register form.