Fixed CSS and Js for the inputs. Substituted various missplaced ids by classes and moved various functions into .ready function.