added serialization so user details are loaded with post json