Fixed sign-in issue by moving helper methods to the sessions helper file