Fixed empty DB issues

Began implementing login page