Simplified code to locate user and fixed bug when user didn’t allow access to GPS