added dashboard and logic for login, index, and dashboard