Fix trivial login and messaging bugs.