First stab at fixing login/register; add .gitignore