added DB interaction, started login page