create login page and add terms rest api