Add register and forgot password functions to UserAPI