Update dashboard.php

Changed login component to match code from merge with login branch.