Modified to use userdetail for create as well. It was used for showing user profile details