Added fix for 500 issue in updateusermetadata API