Added type hidden to source input on invite form and fixed the invite action url