Fixed up the auth decorator quite nicely