Fixed register form and added validate form.