Revamped user auth code
Fixed user loading