Added loginAction to Auth component