Allow empty strings to be used as login details

Hi,

The old code doesn't allow for empty strings. This should:

```js
!!"" == false
!!"Hello World" == true
```

Cheers