Added ruby version to gemfile
Js-ified login and registration, added more validations