Added validations and bcrypt-ruby methods.