add login features and more fix