made create user functionality

used javascript