added the devise gem functionality