Add callbacks for the mobile login form equivalent to the non-mobile form
Merge branch '4.0/mobile-login-callbacks' into 4.0-trunk