Trying to fix the build adapting the devise code.