I wanted to ask I have a necklace with a pendant which has the name of Allah, the prophet and the ahlulbayt on it, is it okay to wear it in the washroom ?

You should take it off before going to the washroom