Fixed up the REST functions for the user