Begin auth logic