form validations and alert styling