Add @ to prevent header() causing PHP warning
Do noto create invalid user entries in Joomla
Skip postlogin if there is no user
Cleanup legacy code