First go at trying to make authentication backend