added validation with error message page