Added user login logout register functionality