Fuction for cheking ip and nickname