login/reg issue fix