login and index for webapp