Fixed login modal to prevent duplicate entries.