clean up user authorization method
tests not passing, could be related to postgres, making fix branch