got login working with db