simple php validation for name and password with a bit of preg_match