generate host properly in form authorize redirect uri