Basic login/registration working with postgres