Added getIp to user service
Code cleaning up