Devise logging added

Not working currently, though.