Fix the current_user code.

The code as it did exist was causing issues, this code works.