validation done for sign up form