fixing bugafter login