Renamed usermodel to loginmodel