Password validation for sign up page.