some fixes for signup/login bugs