hooked into user login form to insert in db for digest auth