added style and finished binding js with html including some validations