adding validations and fixing css