Fixed login from external form bug.