Login clear update

Fix login clearing everything when password/uname/branch is invalid