Fix username issue; fix login on previous log