added message and validation to sort on author search