add register function,login funciton,and section support