change validations so only one error will appear instead of two