Add devise

For feature issue #2