no sex until I know what we are

me and my guy friend are not officially together so I told him no more sex until I know what we are. he told he he loves me already but I want to know if he is committed. am I being harsh?