protocols for loginSuccess/Failure added