Update sign in method.

Added an additional wait for the sign in window to close, thus ensuring that the sign in was successful.