updated git ignore file
added null-reference check

Might have caused an exception when the save request failed.
now preventing any requests while login is in progress