How can i show login pop up if user is logged out while filling out input form

I have a form to fill on my homepage but if user is logged out then i want to show the pop up when submit button is clicked but in workflow show>pop-up is not appearing as a reusable element on index page please help.