Added devise for authentication, hacked around a bug for logging out