More robust way of getting information about user