add email password validate and test