fix syntax and devise version