Figured out how to use events to decouple components (i.e. login)