corrected code to check if user has gps enabled