location checking method in user model