add login and register form validation