Removed unused login handling (see Wiki for code)