Added basic validation to page