implemented error checking for signing/login
Merge remote-tracking branch 'upstream/master'