Added register form validation.
Small fixes.