finish the style of register page and add function which creates a new user