added basic authentication with devise

used devise to add basic login, weak password restraints, mailer not
working.