Remove all cruft except for login functionality.