added validation in both jsp pages and added functionalities in contest controller