Started on input validation in JS

also small css fixes and cleaning