small changes:css and fix in the validation function