synchornous login in app