removed a class toggle bug on login and console.log