func validatePassword(p string) error {
	switch {
	case len(p) < 8:
		return fmt.Errorf("password must be at least 8 characters long")
	}
	return nil
}
// validatePassword returns an error if the password is not valid.
validatePassword returns an error if the password is not valid.
// validatePassword returns an error if the password is not valid .
func validatePassword(p string) error {
	switch {
	case len(p) < 8:
		return fmt.Errorf("password must be at least 8 characters long")
	}
	return nil
}
func validatePassword ( p string ) error { switch { case len ( p ) < 8 : return fmt . Errorf ( " " ) } return nil }
validatePassword returns an error if the password is not valid.
validatePassword returns an error if the password is not valid .