finalize User login to use ES