Added support for allowing [enter] to submit login immediately.

References #668.
Merge pull request #76 from claudius108/master

Added support for allowing [enter] to submit login immediately.