Fixed a bug preventing users from logging in.