Newsletter isn't on master branch.
First step in tidying up, get the signed_in/signed_out logic out of the company view. The only time a person should deal with a company (or any other part of the system) is when they're signed in.