login by username feature added. rake tests passing.