a few updates to allow login