Added devise gem functionality