add api support
add register,signin page,add session support