Added missing imports.
I noticed that auth.py file was using logger- and abort- functions without having the import lines for them, so I added them. There were also code that used 'current_user' which we didn't have, so I changed it to 'g.user'. My VS Code was giving errors about these, but apparently we managed to avoid these errors when testing the branch.