Added a assert to the login