func ValidateAccountDetails(details AccountDetails) error {
	if err := validateUser(details.User); err != nil {
		return errors.Trace(err)
	}
	// It is valid for a password to be blank, because the client
	// may use macaroons instead.
	return nil
}
// ValidateModelDetails ensures that given account details are valid.
ValidateModelDetails ensures that given account details are valid.
// ValidateModelDetails ensures that given account details are valid .
func ValidateAccountDetails(details AccountDetails) error {
	if err := validateUser(details.User); err != nil {
		return errors.Trace(err)
	}
	return nil
}
func ValidateAccountDetails ( details AccountDetails ) error { if err := validateUser ( details . User ) ; err != nil { return errors . Trace ( err ) } return nil }
ValidateModelDetails ensures that given account details are valid.
ValidateModelDetails ensures that given account details are valid .
// It is valid for a password to be blank, because the client // may use macaroons instead.