Update sign in method.

Added an additional wait for the sign in window to close, thus ensuring that the sign in was successful.
Merge pull request #83 from chirarobert/update_sign_in_method

Update sign in method.