login checked for dashboard view