nevermind, the problem is with devise. reverting to Seth's code