[upd] cleanup code
[upd] fix login with incorrect password