Fixed sign-in usecase for postgres