fixing a bug with devise