Homepage now only shows dashboard link if login is valid