validation added to create account and login code