intermediate commit, added auth, get_user function