wrapped GPS button in a login check