Fix bug that keeps users from logging in