Js validation for login and registration forms (examples).

Provide basic client-side validation for login and registration forms (based on http://jqueryvalidation.org/).

DO NOT RELY ON CLIENT-SIDE VALIDATION. Data should be validated by ActiveRecord Validation api and then saved into database.