some changes to register pages

add form validation