added form validation in register
Merge branch 'add-button-to-view'