added method is_valid_priority in Validations
added test for is_valid_priority() in Validations
updated messages file