Added login failed check
Renamed url to hash