added debug param for the login system