adding helper methods for using devise outside of devise controllers