cleaning up content and log in redirect