Mandatory field is not working as I am embeding in my site