Fixed `login` to work on the first login instead of having to enter it twice