login controller and basic action