add code for signin signup
fix some errors