fixing infinite loop
login controller small bug

if login is unsuccessful, newtork activity indicator is hidden