Update login/registration logic, fix location recognizing