Refactor, remove all the codes, leave only the user auth code