Remove the infinite loop in 'login' if there is no STDIN.
Merge pull request #102 from pjcdawkins/remove-login-infinite-loop

Remove the infinite loop in 'login' if there is no STDIN.