add view validation