added custom devise strategy for legacy authentication