added client js validations and server side validations for page creation.