login + reg connected to db