displaying validation to user