How to detect successful login? - MPGH