adds login page and smartApi