401 unauth at login, small changes