fixing login system and it can now login