register
login with database