added progressbar to show login in progress