I created a base class here since there were things that you were doing with every handler. This way you can reuse that code. I also moved all that user code to a `set_user` function. That will help keep that code in one clean function.