added initializer, modified login