Adding login required to dashboard