validation and some styles