Removed retry when login failed
Removed useless code
Displaying detailed feedback on error or no change
Updateing preference summarys on every change