added basic form validation, fixed layout bugs