fixed some errors with devise