added test cases for contact model
improved the validation for user contact