refactoring & css & form validation