removed unused code from login class