added assert statements for login