fix logout
fix invalid checking at signup