Fixing DB and adding login page