Switched to devise for user authentication.

Let's hope this works.
Should fix the issues with devise.