use toggleswitch in loginpage