enable auth and login function
merge
fix syntax error