create login dialog

create login dialog. implemented synchronous api calls