form validations implemented