Conslidate requireAccount logic