Add `close` implementation to login view

This lets us navigate away from the page.