Modified example auth to work with store login