added validations to jsp