Fixed bug with user auth