Added assert statements for login, and for user logged in