Backport enter key login from sotu. Closes #49.