reset login and verify login status logic