Add user page and related functions in server side and front side