added handlesLogin ui flag