Added try/except clause to catch invalid passwords for existing accounts