Getting devise to work for mobile authentication