check email and password format