Fix issues with devise logging in.