add --force option to login
implement error reporting