add code comment and Login error toast