A man has been placed on the sex offender's register after he was caught chatting to what he believed was five underage girls.