add validation to currencies model