resolving some issues with devise gem