Unify login and register to load dashboard.jsp