Zarbees melatonin for 1 year old?

It’s been a week now that my son goes to sleep normal time 8pm (he is 1) and he is up again at midnight, goes back to sleep right away with some comfort, and then he’s back up at 2 am until SIX AM! I have to leave for work at 7. I’m dying. My friend told me she tried zarbees melatonin for a week or two when her daughter did this to get her back on track. Is it safe for him?