last_name optional in profile settings
diff --git a/erpnext/home/page/profile_settings/profile_settings.py b/erpnext/home/page/profile_settings/profile_settings.py
index ffa0e7f..22af804 100644
--- a/erpnext/home/page/profile_settings/profile_settings.py
+++ b/erpnext/home/page/profile_settings/profile_settings.py
@@ -32,7 +32,10 @@
 	from webnotes.model.doc import Document
 	
 	p = Document('Profile', webnotes.user.name)
-	p.fields.update(load_json(arg))
+	arg_dict = load_json(arg)
+	if not 'bio' in arg_dict: arg_dict['bio'] = None
+	if not 'last_name' in arg_dict: arg_dict['last_name'] = None
+	p.fields.update(arg_dict)
 	p.save()
 	webnotes.msgprint('Updated')