Client side validation using javascript

Appropriate errors displayed when validations not met. The acc type
validation isnt working. Tried doing that but didnt work. And played
little with the index UI.