Finally got logging in working after battling with Rails 3